            <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h3 class="modal-title">PAGO DE <?php echo strtoupper($usuario['User']['nombre_completo']);?></h3>
            </div>
            <div class="modal-body">
                <?php echo $this->Form->create('Movimiento',array('action' => 'calcula_pago_cantidad','id' => 'idformpago'));?>
                <div class="row">
                    <div class="col-md-6">
                        <h5>Cantidad</h5>
                        <?php echo $this->Form->text('cantidad_c',array('class' => 'form-control','placeholder' => 'Ingrese la cantidad cuotas','type' => 'number','required'))?>
                        <?php echo $this->Form->hidden('user_id' ,array('value' => $usuario['User']['id']));?>
                    </div> 
                    <div class="col-lg-6">
                        <h5>Pago de </h5>
                        <?php echo $this->Form->select('parametro_id',$parametros,array('class' => 'form-control','required'));?>
                    </div>
                </div>
                
                <br>
                <div class="row">
                    <div class="col-md-12">
                        <?php echo $this->Form->submit('Calcular',array('class' => 'btn btn-alt btn-primary col-md-12'));?>
                    </div>
                </div>
                <?php echo $this->Form->end();?>
            </div>
<script>
  $("#idformpago").submit(function(e)
{
    var postData = $(this).serializeArray();
    var formURL = $(this).attr("action");
    $.ajax(
    {
        url : formURL,
        type: "POST",
        data : postData,
        beforeSend:function (XMLHttpRequest) {
            $('#mimodal').toggle(200);
            $('#imagencargando').toggle(200);
        },
        complete:function (XMLHttpRequest, textStatus) {
            $('#imagencargando').toggle(200);
            $('#mimodal').toggle(200);
        },
        success:function(data, textStatus, jqXHR) 
        {
            //data: return data from server
            $("#mimodal").html(data);
        },
        error: function(jqXHR, textStatus, errorThrown) 
        {
            //if fails      
        }
   });
    e.preventDefault(); //STOP default action
    //e.unbind(); //unbind. to stop multiple form submit.
});
</script>